scrolledwindow: make gtk_scrolled_window_add() smart
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Feb 2013 16:03:44 +0000 (17:03 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Feb 2013 03:58:53 +0000 (22:58 -0500)
commit9efa28591cc49c33e8fb6a66a5e888c57b9b3b3f
tree2a44cf586702056d43f24bdcf399c3565b7e31e0
parent5f41eb74a5fefc194b18c8dc62202b86740fd22f
scrolledwindow: make gtk_scrolled_window_add() smart

There's really no reason why we shouldn't automatically create a
GtkViewport when the widget added to GtkScrolledWindow is not a
GtkScrollable, instead of just printing a g_warning.
Copy the viewport special case into the scrolled window implementation
of gtk_container_add().

https://bugzilla.gnome.org/show_bug.cgi?id=693015
gtk/gtkscrolledwindow.c
gtk/gtkviewport.c